/*    */ package com.jcrj.dao.imp;
/*    */ 
/*    */ import com.jcrj.dao.MessageDao;
/*    */ import com.jcrj.entity.ODraftMessages;
/*    */ import com.jcrj.entity.OMessageMajor;
/*    */ import com.jcrj.entity.OMessageSet;
/*    */ import com.jcrj.entity.OMessagesReceiver;
/*    */ import com.jcrj.entity.OTextmessages;
/*    */ import org.springframework.orm.hibernate3.HibernateTemplate;
/*    */ 
/*    */ public class MessageDaoImp extends AbstractBaseDaoImp
/*    */   implements MessageDao
/*    */ {
/*    */   public void saveMessage(OTextmessages message)
/*    */   {
/* 16 */     getHibernateTemplate().save(message);
/*    */   }
/*    */ 
/*    */   public void deleteMessage(OTextmessages message)
/*    */   {
/* 23 */     getHibernateTemplate().delete(message);
/*    */   }
/*    */ 
/*    */   public void saveDraftMessage(ODraftMessages message)
/*    */   {
/* 30 */     getHibernateTemplate().saveOrUpdate(message);
/*    */   }
/*    */ 
/*    */   public void deleteDraftMessage(ODraftMessages message)
/*    */   {
/* 37 */     getHibernateTemplate().delete(message);
/*    */   }
/*    */ 
/*    */   public void updateMessage(OTextmessages message)
/*    */   {
/* 44 */     getHibernateTemplate().update(message);
/*    */   }
/*    */ 
/*    */   public void deleteMessageReceiver(OMessagesReceiver receiver)
/*    */   {
/* 51 */     getHibernateTemplate().delete(receiver);
/*    */   }
/*    */ 
/*    */   public void saveMessageReceiver(OMessagesReceiver receiver)
/*    */   {
/* 58 */     getHibernateTemplate().save(receiver);
/*    */   }
/*    */ 
/*    */   public void updateMessageReceiver(OMessagesReceiver receiver)
/*    */   {
/* 65 */     getHibernateTemplate().update(receiver);
/*    */   }
/*    */   public void saveMessageSet(OMessageSet messageSet) {
/* 68 */     getHibernateTemplate().saveOrUpdate(messageSet);
/*    */   }
/*    */   public void saveMessageMajor(OMessageMajor messageMajor) {
/* 71 */     getHibernateTemplate().save(messageMajor);
/*    */   }
/*    */ }

/* Location:           /Volumes/work/oa/WEB-INF/classes/
 * Qualified Name:     com.jcrj.dao.imp.MessageDaoImp
 * JD-Core Version:    0.6.0
 */